package buke;

import java.util.Scanner;

public class Test {
public static void main(String[] args) {
	   Scanner sc = new Scanner(System.in);
	   while(sc.hasNextLine()) {
		   String str = sc.nextLine();
		   int sum = 0;
		   int sum1 = strLength(str);
		   int sum2 = getChar(str);
		   int sum3 = getNum(str);
		   int sum4 = getSym(str);
		   if(sum2==20 && sum3>=1 && sum3>=1 &&sum4>=1) {
			   sum = sum1+sum2+sum3+sum4+5;
		   }else if(sum2>=1 &&sum3>=1 && sum4>=1) {
			   sum = sum1+sum2+sum3+sum4+3;
		   }else if(sum2>=1&&sum3>1) {
			   sum = sum1+sum2+sum3+sum4+2;
		   }else {
			   sum = sum1+sum2+sum3+sum4;
		   }
		   if(sum>=90) {
			   System.out.println("VERY_SECURE");
		   }else if(sum>=80) {
			   System.out.println("SECURE");
		   }else if(sum>=70) {
			   System.out.println("VERY_STRONG");
		   }else if(sum>=60) {
			   System.out.println("STRONG");
		   }else if(sum>=50) {
			   System.out.println("AVERAGE");
		   }else if(sum>=25) {
			   System.out.println("WEAK");
		   }else {
			   System.out.println("VERY_WEAK");
		   }
	   }
	   
	   
	   
	   
	   
}

public static int strLength(String str) {
	if(str.length()<=4) {
		return 5;
	}else if(str.length()>=5&&str.length()<=7) {
		return 10;
	}else if(str.length()>=8) {
		return 25;
	}else {
	return 0;
	}
}

public static int getChar(String str) {
	int big =0;
	int small = 0;
	
	for(int i=0;i<str.length();i++) {
		if(str.charAt(i)>=65 && str.charAt(i)<=90) {
			big++;
		}else if(str.charAt(i)>=97 && str.charAt(i)<=122) {
			small++;
	}
	}
	if(small > 0 && big > 0) {
		return 20;
	}else if(small>0 ||big>0) {
		return 10;
		
	}else return 0;
	
}

public static int getNum(String str) {
	int sum = 0;
	for(int i=0;i<str.length();i++) {
		if(str.charAt(i)-'0' >= 0 && str.charAt(i)-'0' <= 9) {
			sum++;
		}
	}
	if(sum>1) {
		return 20;
	}else if(sum==1) {
		return 10;
	}else return 0;
	
}

public static int getSym(String str) {
	int sum = 0;
	for(int i = 0;i<str.length();i++) {
		if(!(str.charAt(i)>=65 && str.charAt(i)<=90)
				&&!(str.charAt(i)>=97 && str.charAt(i)<=122)
				&&!(str.charAt(i)-'0' >= 0 && str.charAt(i)-'0' <= 9)) {
			sum++;
		}
	}
	
	if(sum>1)return 25;
	else if(sum == 1) {
		return 10;
	}else {
		return 0;
	}
}




}
